<?php
use think\facade\Route;


Route::group(function () {
    Route::rule('login/login', 'index/login');
    Route::get('login/wx', 'index/wxLogin');
    Route::get('report/cleaningToday', 'report/cleaningToday');
    Route::post('admin/login', 'admin/login');
});
Route::group(function () {
    // 登录
    Route::get('video/list', 'video/list');
    Route::post('video/play', 'video/play');

    Route::post('sign/sign', 'sign/create');
    Route::get('sign/signNum', 'sign/signNum');

    Route::post('cleaning/sign', 'cleaning/create');
    Route::get('cleaning/signNum', 'cleaning/signNum');

    Route::get('cleaningCheck/info', 'cleaningCheck/info');
    Route::post('cleaningCheck/submit', 'cleaningCheck/create');

    Route::post('leave/submit', 'leave/create');
    Route::get('leave/info', 'leave/read');
    Route::get('leave/myStart', 'leave/startList');
    Route::get('leave/myApproval', 'leave/approvalList');
    Route::post('leave/remove', 'leave/remove');
    Route::post('leave/approval', 'leave/approval');

    Route::get('goods/list', 'goods/index');
    Route::post('goods/exchange', 'goods/exchange');
    Route::get('goods/integralList', 'goods/integralList');
    Route::get('goods/exchangeList', 'goods/exchangeList');

    Route::get('report/signDaily', 'report/signDaily');
    Route::get('report/v2/signDaily', 'report/signDailyV2');
    Route::get('report/cleaningPointList', 'report/cleaningPointList');
    Route::get('report/inspectionDaily', 'report/inspectionDaily');
    Route::get('report/inspectionMonth', 'report/inspectionMonth');
    Route::get('report/cleaningDaily', 'report/cleaningDaily');
    Route::get('report/cleaningMonth', 'report/cleaningMonth');

    Route::post('userReport/report', 'UserReport/create');
    Route::get('userReport/list', 'UserReport/index');
    // 申领
    Route::post('apply/add', 'apply/create');
    Route::get('apply/list', 'apply/index');
    // 仓库
    Route::get('warehouse/list', 'warehouse/index');
    Route::post('warehouse/update', 'warehouse/update');
    // 超级管理员 签到报表
    Route::get('admin/signReport', 'admin/signReport');

})->middleware('index');